﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DIProject.Data
{
    public class Waybills
    {
        public static IList<WaybillSumSelectResult> GetSelectData(DateTime start, DateTime end)
        {
            return DataLayer.ContextFun(context =>
              {
                  var res = context.WaybillSumSelect(start, end);
                  if (res == null)
                      return Enumerable.Empty<WaybillSumSelectResult>().ToList();
                  return res.ToList();
              });
        }
    }
}
